<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>详情操作</title>
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="yes" name="apple-touch-fullscreen"/>
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
    <!--<link href="../../static/css/main.css" th:href="@{/css/main.css}" rel="stylesheet" />-->
    <script type="text/javascript" src="/js/jquery-1.12.3.js"></script>
    <script type="text/javascript" src="/js/layui/layui.js"></script>
    <link rel="stylesheet" href="/js/layui/css/layui.css" media="all" />
    <script type="text/javascript">
        $(function(){
            layui.use('element', function(){
                var element = layui.element();

                //…
            });
        });

    </script>
</head>
<body>
<center>

    <div>涉及方案</div>
    <div>
        <table class="layui-table" lay-even="" lay-skin="row">
            <colgroup>
                <col width="150"/>
                <col width="250"/>
                <col />
            </colgroup>
            <thead>
            <th>ID</th>
            <th>方案名称</th>
            </thead>
            <tbody>
            <tr th:each="it:${info}">
                <td th:text="${it.key}"></td>
                <td th:text="${it.value}"></td>
            </tr>
            <tr>
                <td >状态</td>
                <td th:if="${log.status eq 1}">待处理</td>
                <td th:if="${log.status eq 2}">待审核</td>
                <td th:if="${log.status eq 3}">作废成功</td>
                <td th:if="${log.status eq 4}">已重新生效</td>
                <td th:if="${log.status eq 5}">处理完成</td>
                <td th:if="${log.status eq 998}">用户放弃</td>
                <td th:if="${log.status eq 999}">超时</td>
            </tr>
            </tbody>
        </table>
    </div>

    <div>发起人详情</div>
    <div>
        <table class="layui-table" lay-even="" lay-skin="row">
            <colgroup>
                <col width="150"/>
                <col width="250"/>
                <col />
            </colgroup>
            <thead>
            </thead>
            <tbody>
            <tr>
                <td >发起人</td>
                <td th:text="${log.opername}"></td>
            </tr>
            <tr>
                <td >发起时间</td>
                <td th:text="${#calendars.format(log.appletime,'yyyy-MM-dd HH:mm:ss')}"></td>
            </tr>
            <tr>
                <td >作废理由</td>
                <td th:text="${log.reason}"></td>
            </tr>
            </tbody>
        </table>
    </div>

    <div th:if="${log.status ne 2}">
        <div>审批详情</div>
        <div>
            <table class="layui-table" lay-even="" lay-skin="row">
                <colgroup>
                    <col width="150"/>
                    <col width="250"/>
                    <col />
                </colgroup>
                <thead>
                </thead>
                <tbody>
                <tr>
                    <td >审批人</td>
                    <td th:text="${log.approver}"></td>
                </tr>
                <tr>
                    <td >审批时间</td>
                    <td th:text="${#calendars.format(log.approvetime,'yyyy-MM-dd HH:mm:ss')}"></td>
                </tr>
                <tr th:if="${log.status eq 4}">
                    <td >重新生效时间</td>
                    <td th:text="${#calendars.format(log.enabletime,'yyyy-MM-dd HH:mm:ss')}"></td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
<div>
    <a th:if="${log.status eq 2}" th:href="@{/wxPage/WxCancelPlan(infoId=${infoId})}" class="layui-btn layui-btn-radius layui-btn-normal"><span font-size="60">确认作废并允许业务员自行生效</span></a>
    <a th:if="${log.status eq 2}" th:href="@{/wxPage/WxCancelPlanWithoutEnable(infoId=${infoId})}" class="layui-btn layui-btn-radius layui-btn-normal"><span font-size="60">确认作废但不允许业务员自行生效</span></a>
    <a th:if="${log.status eq 3}" th:href="@{/wxPage/WxEnablePlan(infoId=${infoId})}" class="layui-btn layui-btn-radius layui-btn-normal"><span font-size="60">立即生效</span></a>
</div>
</center>
</body>
</html>